package designpattern.flyweight.news;

public class Client {
    public static void main(String[] args) {
        NewsInfo newsInfo = NewsInfo.builder().id("1447872663777").author("steak").build();
        INews news = NewsFactory.getNews(newsInfo);
        System.out.println("news  "+news);
        R news1 = news.getNewsById(newsInfo.getId());
        System.out.println(news1);
        R news2 = news.getNewsById(newsInfo.getId());
        System.out.println(news2);
    }
}
